from django.contrib import admin
from flight.models import *;


# Register your models here.
class FlightInfoAdmin(admin.ModelAdmin):
    list_display = ['flightName', 'startPos', 'endPos', 'startTime', 'endTime', 'isDelay', 'maxSeat', 'leftSeat',
                    'seatInfo', 'price']


class TicketInfoAdmin(admin.ModelAdmin):
    list_display = ['flightName', 'seatNo', 'price', 'passengerId', 'userId']


class AirportInfoAdmin(admin.ModelAdmin):
    list_display = ['name', 'location']


admin.site.register(FlightInfo, FlightInfoAdmin)
admin.site.register(TicketInfo, TicketInfoAdmin)
admin.site.register(AirportInfo, AirportInfoAdmin)
